package com.ruoyi.project.loan.mapper;

import com.ruoyi.project.loan.domain.RepaymentPlan;

import java.util.List;

/**
 * 还款计划Mapper接口
 *
 * @author ruoyi
 * @date 2025-11-11
 */
public interface RepaymentPlanMapper {
    /**
     * 查询还款计划
     *
     * @param planId 还款计划主键
     * @return 还款计划
     */
    public RepaymentPlan selectRepaymentPlanByPlanId(Long planId);

    /**
     * 查询还款计划列表
     *
     * @param repaymentPlan 还款计划
     * @return 还款计划集合
     */
    public List<RepaymentPlan> selectRepaymentPlanList(RepaymentPlan repaymentPlan);

    /**
     * 新增还款计划
     *
     * @param repaymentPlan 还款计划
     * @return 结果
     */
    public int insertRepaymentPlan(RepaymentPlan repaymentPlan);

    /**
     * 修改还款计划
     *
     * @param repaymentPlan 还款计划
     * @return 结果
     */
    public int updateRepaymentPlan(RepaymentPlan repaymentPlan);

    /**
     * 删除还款计划
     *
     * @param planId 还款计划主键
     * @return 结果
     */
    public int deleteRepaymentPlanByPlanId(Long planId);

    /**
     * 批量删除还款计划
     *
     * @param planIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRepaymentPlanByPlanIds(Long[] planIds);
}
